package com.jiangchuang.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "微信昵称")
    private String nickname = "普通用户";
    @ApiModelProperty(value = "头像")
    private String portraitUrl;
    //    @ApiModelProperty(value = "电话")
//    private String phone;
    private String unionid;
    private String openid;
    @ApiModelProperty(value = "公众号openid")
    private String gzhOpenid;
    @ApiModelProperty(value = "金币")
    private Integer coin;
    @ApiModelProperty(value = "用户上次观看激励视频的日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String lastRewardDate;
    @ApiModelProperty(value = "用户已观看的激励视频次数")
    private Integer rewardVideoNum;
    @ApiModelProperty(value = "上次随机选菜的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastRandomTime;
    @ApiModelProperty(value = "随机选菜等级（对应选菜的个数）")
    private Integer randomLevel;
}